package com.xiaozhengkeji.starbootserver.base.services;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.xiaozhengkeji.starbootserver.base.mapper.SysUserEntityMapper;
import com.xiaozhengkeji.starbootserver.base.entitys.SysUserEntity;

@Service
public class SysUserEntityService {

    @Resource
    private SysUserEntityMapper sysUserEntityMapper;


    public int deleteByPrimaryKey(Integer uid) {
        return sysUserEntityMapper.deleteByPrimaryKey(uid);
    }


    public int insert(SysUserEntity record) {
        return sysUserEntityMapper.insert(record);
    }


    public int insertSelective(SysUserEntity record) {
        return sysUserEntityMapper.insertSelective(record);
    }


    public SysUserEntity selectByPrimaryKey(Integer uid) {
        return sysUserEntityMapper.selectByPrimaryKey(uid);
    }


    public int updateByPrimaryKeySelective(SysUserEntity record) {
        return sysUserEntityMapper.updateByPrimaryKeySelective(record);
    }


    public int updateByPrimaryKeyWithBLOBs(SysUserEntity record) {
        return sysUserEntityMapper.updateByPrimaryKeyWithBLOBs(record);
    }


    public int updateByPrimaryKey(SysUserEntity record) {
        return sysUserEntityMapper.updateByPrimaryKey(record);
    }


    public List<SysUserEntity> queryByAll(SysUserEntity sysUserEntity) {
        return sysUserEntityMapper.queryByAll(sysUserEntity);
    }


    public List<SysUserEntity> queryByUsername(String username) {
        return sysUserEntityMapper.queryByUsername(username);
    }


    public List<SysUserEntity> queryByMailbox(String mailbox) {
        return sysUserEntityMapper.queryByMailbox(mailbox);
    }


    public List<SysUserEntity> queryAllByPhone(Integer phone) {
        return sysUserEntityMapper.queryAllByPhone(phone);
    }

}

